
function [newDataA] = interpolate(G)
% Interpolate data
scale_conversion_factor_tracking = 1.5;
interpolatedTimeStamps = (G(1,1):100/3:G(size(G,1),1));
newDataA = zeros(size(interpolatedTimeStamps',1),3);
newDataA(:,1) = interpolatedTimeStamps';
newDataA(:,2) = (interp1(G(:,1)', G(:,2)', interpolatedTimeStamps))'./scale_conversion_factor_tracking;
newDataA(:,3) = (interp1(G(:,1)', G(:,3)', interpolatedTimeStamps))'./scale_conversion_factor_tracking;